import { createRouter, createWebHashHistory } from 'vue-router';
import home from './modules/home';
import management from './modules/management';
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/login',
      component: () => {
        return import('@/views/login/index.vue');
      },
      meta: {
        title: '登录页'
      }
    }
  ].concat(management, home)
});

export default router;
